package org.dromara.germbank.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 合作伙伴档案表
 * 数据库表名：bus_partner_profile
 */
@Data
@TableName("bus_application_partner")
public class BusApplicationPartner implements Serializable {

    @TableField("id")
    @NotNull(message = "id不能为空")
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    @TableField("donor_id")
    @NotNull(message = "捐赠者ID不能为空")
    @Schema(description = "捐赠者ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long donor_id;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime create_time;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime update_time;

    @TableField("del_flag")
    @Schema(description = "删除标志: 0-存在, 1-删除")
    private Integer del_flag;

    @TableField("first_name")
    @NotBlank(message = "法定名字不能为空")
    @Size(max = 50, message = "法定名字长度不能超过50")
    @Length(max = 50, message = "法定名字长度不能超过50")
    @Schema(description = "法定名字", requiredMode = Schema.RequiredMode.REQUIRED)
    private String first_name;

    @TableField("last_name")
    @NotBlank(message = "法定姓氏不能为空")
    @Size(max = 50, message = "法定姓氏长度不能超过50")
    @Length(max = 50, message = "法定姓氏长度不能超过50")
    @Schema(description = "法定姓氏", requiredMode = Schema.RequiredMode.REQUIRED)
    private String last_name;

    @TableField("country")
    @NotBlank(message = "国家不能为空")
    @Size(max = 50, message = "国家长度不能超过50")
    @Length(max = 50, message = "国家长度不能超过50")
    @Schema(description = "国家", requiredMode = Schema.RequiredMode.REQUIRED)
    private String country;

    @TableField("city")
    @NotBlank(message = "城市不能为空")
    @Size(max = 50, message = "城市长度不能超过50")
    @Length(max = 50, message = "城市长度不能超过50")
    @Schema(description = "城市", requiredMode = Schema.RequiredMode.REQUIRED)
    private String city;

    @TableField("state")
    @Size(max = 50, message = "州/省长度不能超过50")
    @Length(max = 50, message = "州/省长度不能超过50")
    @Schema(description = "州/省")
    private String state;

    @TableField("postal_code")
    @Size(max = 20, message = "邮政编码长度不能超过20")
    @Length(max = 20, message = "邮政编码长度不能超过20")
    @Schema(description = "邮政编码")
    private String postal_code;

    @TableField("street")
    @Size(max = 200, message = "街道地址长度不能超过200")
    @Length(max = 200, message = "街道地址长度不能超过200")
    @Schema(description = "街道地址")
    private String street;

    @TableField("clinic_name")
    @Size(max = 100, message = "IVF诊所/机构名称长度不能超过100")
    @Length(max = 100, message = "IVF诊所/机构名称长度不能超过100")
    @Schema(description = "IVF诊所/机构名称")
    private String clinic_name;

    @TableField("has_egg_bank")
    @Schema(description = "是否拥有内部卵子库：0-否 1-是")
    private Integer has_egg_bank;

    @TableField("coop_egg_bank")
    @Schema(description = "目前是否与某卵子库有合作：0-否 1-是")
    private Integer coop_egg_bank;

    @TableField("leave_msg")
    @Size(max = 65535, message = "您的留言长度超限")
    @Length(max = 65535, message = "您的留言长度超限")
    @Schema(description = "您的留言")
    private String leave_msg;
}
